package com.hefu.virtuallife.recyclerViewdivider;

import java.util.HashMap;

/**
 * creat_user: zhengzaihong
 * Email:1096877329@qq.com
 * creat_date: 2018/7/23
 * creat_time: 11:31
 * describe 简化分割map
 **/
public class DecorationMap {

    public static HashMap map(int l, int t, int r, int b) {
        HashMap<String, Integer> keymap = new HashMap<>();
        keymap.put(RecyclerViewSpacesItemDecoration.TOP_DECORATION, t);
        keymap.put(RecyclerViewSpacesItemDecoration.BOTTOM_DECORATION, b);
        keymap.put(RecyclerViewSpacesItemDecoration.LEFT_DECORATION, l);
        keymap.put(RecyclerViewSpacesItemDecoration.RIGHT_DECORATION, r);

        return keymap;
    }

}
